import Vue from 'vue';
import VueRouter from 'vue-router';
import VueResource from 'vue-resource';
import App from './App';
import goods from './components/goods/goods';
import ratings from './components/ratings/ratings';
import seller from './components/seller/seller';

import 'common/scss/index.scss';

Vue.use(VueRouter);
Vue.use(VueResource);

var router = new VueRouter({
  'routes': [
    {path: '/goods', component: goods},
    {path: '/ratings', component: ratings},
    {path: '/seller', component: seller}
  ],
  'linkActiveClass': 'active'
});

router.push('/goods');

/* eslint-disable no-new */
new Vue({
  el: '#app',
  'router': router,
  template: '<App/>',
  components: {
    App
  }
});
